<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="<?php echo IUrl::creatUrl("")."views/".$this->theme."/skin/".$this->skin."/css/admin.css";?>" />
<script charset="UTF-8" src="/runtime/systemjs/jquery-1.4.4.min.js"></script>
<script charset="UTF-8" src="/runtime/systemjs/artdialog/artDialog.min.js"></script>
<script charset="UTF-8" src="/runtime/systemjs/form.js"></script>
<link rel="stylesheet" type="text/css" href="/runtime/systemjs/autovalidate/style.css"/><script charset="UTF-8" src="/runtime/systemjs/autovalidate/validate.js"></script>
<script type='text/javascript' src="<?php echo IUrl::creatUrl("")."views/".$this->theme."/javascript/common.js";?>"></script>
<script type='text/javascript' src="<?php echo IUrl::creatUrl("")."views/".$this->theme."/javascript/admin.js";?>"></script>
<script type='text/javascript' src="<?php echo IUrl::creatUrl("")."views/".$this->theme."/javascript/menu.js";?>"></script>
</head>
<body>
<div class="container">
	<div id="header">
		<div id="menu">
			<ul name="menu">
			</ul>
		</div>
		<p><a href="<?php echo IUrl::creatUrl("/systemadmin/logout");?>">退出管理</a> <a href="<?php echo IUrl::creatUrl("/system/default");?>">后台首页</a> <a href="<?php echo IUrl::creatUrl("");?>" target='_blank'>商城首页</a> <span>您好 <label class='bold'><?php echo isset($this->admin['admin_name'])?$this->admin['admin_name']:"";?></label>，当前身份 <label class='bold'><?php echo isset($this->admin['admin_role_name'])?$this->admin['admin_role_name']:"";?></label></span></p>
	</div>
	<?php $admin_id = $this->admin['admin_id']?>
	<div id="info_bar"><label class="navindex"><a href="<?php echo IUrl::creatUrl("/system/navigation");?>">快速导航管理</a></label><span class="nav_sec">
	<?php $query = new IQuery("quick_naviga");$query->where = "adminid = $admin_id and is_del = 0";$items = $query->find(); foreach($items as $key => $item){?>
	<a href="<?php echo isset($item['url'])?$item['url']:"";?>" class="selected"><?php echo isset($item['naviga_name'])?$item['naviga_name']:"";?></a>
	<?php }?>
	</span></div>
	<div id="admin_left">
		<ul class="submenu">
		</ul>
		<div id="copyright">
			
		</div>
	</div>
	<?php $menu = new Menu();?>
	<script type='text/javascript'>
		var data = <?php echo $menu->submenu();?>;
		var current = '<?php echo $menu->current;?>';
		var url='<?php echo IUrl::creatUrl("/");?>';
		initMenu(data,current,url);
	</script>
	<div id="admin_right">
	<div class="headbar">
	<div class="position"><span>系统</span><span>></span><span>配送管理</span><span>></span><span>物流公司<?php if(empty($id)){?>添加<?php }else{?>编辑<?php }?></span></div>
</div>
<div class="content_box">
	<div class="content form_content">
		<form action='<?php echo IUrl::creatUrl("/system/freight_update");?>' method='post'>
			<table class="form_table">
				<col width="150px" />
				<col />
				<tr>
					<th>物流公司选择：</th>
					<td>
						<select name="freight_type" id="freight_type">
							<option value="CNEMS" <?php if($freight_type=='CNEMS'){?>selected<?php }?>>中国邮政EMS </option>
							<option value="CNST" <?php if($freight_type=='CNST'){?>selected<?php }?>>申通快递 </option>
							<option value="CNTT" <?php if($freight_type=='CNTT'){?>selected<?php }?>>天天快递 </option>
							<option value="CNYT" <?php if($freight_type=='CNYT'){?>selected<?php }?>>圆通速递 </option>
							<option value="CNSF" <?php if($freight_type=='CNSF'){?>selected<?php }?>>顺丰速运 </option>
							<option value="CNYD" <?php if($freight_type=='CNYD'){?>selected<?php }?>>韵达快递 </option>
							<option value="CNZT" <?php if($freight_type=='CNZT'){?>selected<?php }?>>中通速递 </option>
							<option value="CNLB" <?php if($freight_type=='CNLB'){?>selected<?php }?>>龙邦物流 </option>
							<option value="CNZJS" <?php if($freight_type=='CNZJS'){?>selected<?php }?>>宅急送 </option>
							<option value="CNQY" <?php if($freight_type=='CNQY'){?>selected<?php }?>>全一快递 </option>
							<option value="CNHT" <?php if($freight_type=='CNHT'){?>selected<?php }?>>汇通速递 </option>
							<option value="CNMH" <?php if($freight_type=='CNMH'){?>selected<?php }?>>民航快递 </option>
							<option value="CNYF" <?php if($freight_type=='CNYF'){?>selected<?php }?>>亚风速递 </option>
							<option value="CNKJ" <?php if($freight_type=='CNKJ'){?>selected<?php }?>>快捷速递 </option>
							<option value="DDS" <?php if($freight_type=='DDS'){?>selected<?php }?>>DDS快递 </option>
							<option value="CNHY" <?php if($freight_type=='CNHY'){?>selected<?php }?>>华宇物流 </option>
							<option value="CNZY" <?php if($freight_type=='CNZY'){?>selected<?php }?>>中铁快运 </option>
							<option value="FEDEX" <?php if($freight_type=='FEDEX'){?>selected<?php }?>>FedEx </option>
							<option value="UPS" <?php if($freight_type=='UPS'){?>selected<?php }?>>UPS </option>
							<option value="DHL" <?php if($freight_type=='DHL'){?>selected<?php }?>>DHL </option>
							<option value="OTHER" <?php if($freight_type=='OTHER'){?>selected<?php }?>>其它 </option>
						</select>
					</td>
				</tr>
				<tr>
					<th>物流公司全称：</th>
					<td><input type="text" name="freight_name" id="freight_name" class="normal" value="<?php echo isset($freight_name)?$freight_name:"";?>" pattern="required" alt="物流名称错误"/><lable></lable><input type="hidden" name="id" value="<?php echo isset($id)?$id:"";?>" /></td>
				</tr>
				<tr>
					<th>物流公司网址：</th><td><input class="normal" type="text" name="url" id="url" value="<?php echo isset($url)?$url:"";?>" empty pattern="url" alt="网址错误"/></td>
				</tr>
				<tr>
					<th>排序：</th><td><input class="small" type="text" name="sort" id="sort" value="<?php echo isset($sort)?$sort:"";?>" /></td>
				</tr>
				<tr>
					<td></td><td><button class="submit" type="submit"><span>保 存</span></button></td>
				</tr>
			</table>
		</form>
	</div>
</div>
<script type='text/javascript'>
	
	
</script>

	</div>
	<div id="separator"></div>
</div>
<script type='text/javascript'>
	//隔行换色
	$(".list_table tr::nth-child(even)").addClass('even');
	$(".list_table tr").hover(
		function () {
			$(this).addClass("sel");
		},
		function () {
			$(this).removeClass("sel");
		}
	);
	$(function(){
		 $('#headth th').each(function(i){
			var width = $('#headth th:eq('+i+')').width();
			$('#conth tr:eq(0) td:eq('+i+')').width(width-2);
		});
	});
</script>
</body>
</html>
